# syntax=docker/dockerfile:1.4
FROM --platform=$BUILDPLATFORM nginx AS builder

WORKDIR /app

COPY nginx.conf /etc/nginx/conf.d/default.conf
#COPY . /app

RUN openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
    -subj "/C=RU/ST=Saint-Petesburg/O=IT-Planet/OU=Comfort Enerjy/CN=Flask" \
    -keyout nginx-selfsigned.key  -out nginx-selfsigned.crt


